package com.example.teesystem.entityDto;

import com.example.teesystem.common.valid.ValidErrorMessage;
import com.example.teesystem.common.valid.ValidId;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * @author pxr
 * @data 5/11/2022 下午1:15
 */
@Data
public class LogSelect {

    @NotNull
    private String startTime;
    @NotNull
    private String endTime;

    private Integer userId;

    @NotNull
    private Integer courseId;
    /**
     * 当前页
     */
    @ValidId(minValue = 0, message = ValidErrorMessage.PAGE_CUR_VALID_FAIL)
    private Integer cur;

    /**
     * 每页个数
     */
    @ValidId(minValue = 0, message = ValidErrorMessage.PAGE_SIZE_VALID_FAIL)
    private Integer size;
}
